package com.ostrich.cloud.ostrichGoodsService.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ostrich.cloud.common.result.PageResult;
import com.ostrich.cloud.ostrichGoodsSercice.model.Dto.GoodsDto;
import com.ostrich.cloud.ostrichGoodsService.infra.model.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ostrich.cloud.ostrichGoodsService.service.param.AddGoodsParam;
import com.ostrich.cloud.ostrichGoodsService.service.param.SelectGoodsParam;
import com.ostrich.cloud.ostrichGoodsService.service.param.UpdateGoodsParam;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 物品表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-10-26
 */
public interface GoodsService extends IService<Goods> {

    GoodsDto getGoodsDto(Integer goodsId);

    Boolean addGoods(AddGoodsParam addGoodsParam);

    PageResult<GoodsDto> selectGoodsDto(SelectGoodsParam param);

    PageResult<GoodsDto> selectAllGoodsDto(Integer current,Integer size);


    boolean updateGoods(UpdateGoodsParam updateGoodsParam);

    boolean delGoods(Integer goodsId);

    List<GoodsDto> getHotGoods();

}
